import { NgModule } from '@angular/core';
import { Routes,
     RouterModule } from '@angular/router';

import { FileComponent } from './file.component';

const routes: Routes = [
    {
    path: '',
    redirectTo: 'updata',
    pathMatch: 'full',
  },
  {
    path: '',
    data: {
      title: '文件管理'
    },
    children: [
      {
        path: 'updata',
        component: FileComponent,
        data: {
          title: '上传文件'
        }
      },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FileRoutingModule {}
